package com.xingxue.logistics.service;

import com.xingxue.logistics.dao.domain.SysRoleUser;
import com.xingxue.logistics.dao.domain.SysRoleUserExample;
import com.xingxue.logistics.dao.mapper.SysRoleUserMapper;

import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * @author zgx at 2018/10/11 0011 下午 4:00
 */
public class RoleUserServiceImpl implements RoleUserService {

    @Autowired
    SysRoleUserMapper roleUserMapper;

    @Override
    public List<SysRoleUser> loadAll() {
        SysRoleUserExample example = new SysRoleUserExample();
        example.setOrderByClause(" roleId asc");
        return roleUserMapper.selectByExample(example);
    }
}
